#include<iostream>
int main() {
	int i = 50,sum = 0;
	while (i <= 100)
		sum += i++;
	std::cout << sum << std::endl;
	int sum2 = 0;
	for (size_t i = 50; i < 101; i++)
	{
		sum2 += i;
	}
	std::cout << sum2 << std::endl;

	system("pause");
	return 0;
 }